#ifndef _MEMBER_BSPHERE_H_
#define _MEMBER_BSPHERE_H_

#include <BMesh>
#include <BViewer>
#include <BCamera>
#include <BGeoSphere>

namespace BWE
{
	class member_BGeoSphere
	{
	public:
		member_BGeoSphere(BGeoSphere* sphere);
		~member_BGeoSphere();

		void divideVertexs(BVector* vs, int ia, int ib, int ic, int div);

		bool rebuild();

		BGeoSphere*			boss;
		BReal				radius;
		int					divide;
		int					segment;
		int					stride;
		bool				dirty;
		BVector				vecs[10];
		BTriangle			trigs[20];
		BColor				color;
	};
}
#endif
